package fluo.centralserver;

import java.io.Serializable;

public class RegisterDesktop implements Serializable{

	private static final long serialVersionUID = -6819147833350126532L;
	
	private String ServerName;
	private String ip;
	private int port;
	
	private boolean accepted = false;
	
	public RegisterDesktop(String ServerName, String ip, int port){
		this.ServerName = ServerName;
		this.ip = ip;
		this.port = port;
	}
	public void setServerName(String serverName) {
		ServerName = serverName;
	}
	public String getServerName() {
		return ServerName;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getIp() {
		return ip;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getPort() {
		return port;
	}
	
	public String toString(){
		return ServerName + " - " + ip + ":" + port;
	}
	public void setAccepted(boolean accepted) {
		this.accepted = accepted;
	}
	public boolean isAccepted() {
		return accepted;
	}
}
